package tech.lq0.dreamaticdelight.item.food.fukamizu;

import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.Level;
import org.jetbrains.annotations.Nullable;
import tech.lq0.dreamaticvoyage.tools.Livers;
import tech.lq0.dreamaticvoyage.tools.TooltipTool;
import vectorwing.farmersdelight.common.item.ConsumableItem;

import java.util.List;

public class FukamizuPlumSauce extends ConsumableItem {

    private static final FoodProperties FOOD = (new FoodProperties.Builder()).nutrition(5).saturationMod(0.6F)
            .alwaysEat().build();

    public FukamizuPlumSauce() {
        super(new Properties().craftRemainder(Items.BOWL).food(FOOD));
    }

    @Override
    public void appendHoverText(ItemStack stack, @Nullable Level level, List<Component> tooltip, TooltipFlag isAdvanced) {
        tooltip.add(Component.translatable("des.dreamaticdelight.fukamizu_plum_sauce").withStyle(ChatFormatting.GRAY));

        TooltipTool.addLiverInfo(tooltip, Livers.FUKAMIZU);
    }

}
